import request from '@/utils/request'
/**
 * 列表
 * @returns
 */
export function GetListAPI(params) {

    return request({
        url: '/web/specialInspection/list',
        method: 'GET',
        params
    })
}



/**
 * 
 * @param {*} data 
 * 新增
 */
export function AddSpecialInspectionAPI(data) {
    return request({
        url: '/web/specialInspection',
        method: 'POST',
        data
    })
}
/**
 * 回显
 */
export function GetViewAPI(data) {
    return request({
        url: '/web/specialInspection/' + data,
        method: 'GET',


    })
}

/**
 * 修改
 * @param {*} data 
 * @returns 
 */
export function EditDataAPI(data) {
    return request({
        url: '/web/specialInspection',
        method: 'PUT',
        data
    })
}

// 删除
export function DelDataAPI(data) {
    return request({
        url: '/web/specialInspection/' + data,
        method: 'DELETE'
    })
}

/**稽查场景 */

export function inspectionSceneDdlAPI(params) {

    return request({
        url: '/web/specialInspection/inspectionSceneDdl',
        method: 'GET',
        params
    })
}


/**稽查类别 */

export function auditTypeDdlDdlAPI(params) {

    return request({
        url: '/web/specialInspection/auditTypeDdl',
        method: 'GET',
        params
    })
}

/**等级 */
export function gradeDdlAPI(params) {

    return request({
        url: '/web/specialInspection/gradeDdl',
        method: 'GET',
        params
    })
}
